// CharacterRecognition.cpp: 定义控制台应用程序的入口点。
//

#include "stdafx.h"

#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include "RecognizeImage.h"
#include "Gray2Bit.h"

using namespace cv;
using namespace std;

int main()
{
	Mat image0, image1;
	string path = "D:\\Projects\\vs\\cpp\\CharacterRecognition\\CharacterRecognition\\";	
	image0 = imread(path + "1.png", IMREAD_COLOR);
	//image1 = imread(path + "1.png", IMREAD_COLOR);
	//cout << "image0 = " << endl << " " << image0 << endl << endl;
	

	RecognizeImage ri;
	string r = ri.Recognize(image0);
	cout << r;

	namedWindow("Display window", WINDOW_AUTOSIZE);
	imshow("Display window", image0);			

	waitKey(0); // Wait for a keystroke in the window
    return 0;
}

